<div class="box">
	<div class="box-header well">
		<h2><i class="icon-th"></i> 同类推荐</h2>
		<!-- <div class="box-icon">
			<a href="#" class="btn btn-minimize btn-round" title="隐藏"><i class="icon-chevron-down"></i></a>
		</div> -->
	</div>
	<div class="box-content">
		<?php if (!empty($relateds)):?>
			<ul class="unstyled">
				<?php foreach($relateds as $index=>$related):?>
				<li>
				  	<?php if ($index <3):?>
						<span class="label label-important"><?php echo $index+1?></span>
					<?php else:?>
						<span class="label label-info"><?php echo $index+1?></span>
					<?php endif;?>
				  	<a href="/<?php echo $controller?>/detail/id/<?php echo $related['id']?>"><?php echo $related['name']?></a>
			  		<span class="pull-right"><?php echo $related['view_num']?></span>
				</li>
				<?php endforeach;?>
			</ul>
		<?php else:?>
			<div class="alert alert-info">
				暂时没有数据
			</div>
		<?php endif;?>
	</div>
</div>
